<template>
	<view class="setting-page">
		<lexiconNavVue title="设置" />

		<view class="section">
			<view class="section-bg">
				<view class="menu-list">
					<view class="menu-list-item"
						v-for="(item, i) in menu" :key="i" @click="menuClick(item)">
						<view>
							<view>{{item.title}}</view>
							<view class="btn-en">{{item.en}}</view>
						</view>
						<view v-if="item.content">{{ item.content }}</view>
						<uv-icon v-else color="#ffffff" name="arrow-right"></uv-icon>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menu: [{
					id: 12,
					title: '人脸采集',
					en: 'Facial recognition',
					path: '/pages/tabbar/userCenter/baiduface'
				}],
			};
		},
		methods: {
			menuClick(item) {
				if (item.path) {
					uni.navigateTo({
						url: item.path
					})
				}
			}
		}
	}
</script>

<style lang="less">
.setting-page{
	background-color: #fff8e1;
	height: 100vh;
	overflow-y: auto;
}
.section {
		width: 90%;
		background: linear-gradient(to bottom, #130e00, #373632);
		border-radius: 20px;
		box-sizing: border-box;
		margin: 20px auto;
		.section-title {
			font-size: 14px;
			font-family: hzgb;
			color: #000;
			background-color: #eee;
			height: 30px;
			line-height: 30px;
			text-align: center;
			border-radius: 30px;
			margin-bottom: 10px;

			text {
				margin-left: 10px;
			}
		}

		.section-bg {
			width: 100%;
			height: 100%;
			background-image: url(../../../static/image/homePage/diwen.png);
			background-size: cover;
		}
	}
	.menu-list-item {
		margin: 0 30px;
		padding: 12px 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 14px;
		font-weight: bold;
		color: #fff;
		border-bottom: 1px solid #464239;
	}
</style>
